<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>暂定决算单</a></li>
        <li><a href="{:url('team/add',array('id'=>$id,'type'=>1))}">班组决算新增</a></li>
        <li><a href="{:url('team/add',array('id'=>$id,'type'=>2))}">施工供应商决算新增</a></li>
        <li><a href="{:url('team/add',array('id'=>$id,'type'=>3))}">采购供应商决算新增</a></li>
    </ul>

    <form method="post" class="js-ajax-form margin-top-20">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>决算总价</th>
                <th>已支付</th>
                <th>余款</th>
                <th>属性</th>
                <th>班组/供应商</th>
                <th>{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="v">
                <tr>
                    <td>{$v.deciPrice}</td>
                    <td>{$v.pay}</td>
                    <td>{$v.bance}</td>
                    <td>
                        <if condition="$v['type'] eq 1">
                            <span class="label label-success">班组</span>
                            <else/>
                            <span class="label label-danger">供应商</span>
                        </if>
                    </td>
                    <td>{$v.lname}</td>
                    <td>
                        <a class="btn btn-xs btn-primary js-ajax-submit"
                           href="{:url('team/see',array('id'=>$v.id))}">查看详情</a>

                        <a class="btn btn-xs btn-danger js-ajax-delete" class=""
                           href="{:url('team/del',array('id'=>$v.id))}">{:lang('DELETE')}</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>

    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>